// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.FileManageDao;
import com.liuxinlong.modules.entity.FileManage;
import com.liuxinlong.modules.mapper.FileManageMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * FileManageDaoImpl
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年2月22日
 */
@Service
public class FileManageDaoImpl extends ServiceImpl<FileManageMapper, FileManage> implements FileManageDao {

	@Override
	public List<FileManage> pageFileManageList(Map<String, Object> queryParam) {
		return baseMapper.pageFileManageList(queryParam);
	}

	@Override
	public int getFileManageCount(Map<String, Object> queryParam) {
		return baseMapper.getFileManageCount(queryParam);
	}

	@Override
	public void addFileManage(FileManage fileManage) {
		baseMapper.insert(fileManage);
	}

	@Override
	public void updateFileManage(FileManage fileManage) {
		baseMapper.updateById(fileManage);
	}

	@Override
	public void deleteFileManage(String id) {
		baseMapper.deleteById(id);
	}

	@Override
	public List<FileManage> queryFileManageList(String businessId) {
		return baseMapper.queryFileManageList(businessId);
	}

	@Override
	public void batchUpdateBusinessFile(String[] fileIds, String businessId) {
		baseMapper.batchUpdateBusinessFile(fileIds, businessId);
	}

	@Override
	public Map<String, Map<String, String>> getFileMap(int businessType) {
		return baseMapper.getFileMap(businessType);
	}

	@Override
	public Map<String, Map<String, Object>> getFileMapByIds(Set<String> fileIdList) {
		return baseMapper.getFileMapByIds(fileIdList);
	}

	@Override
	public Map<String, Map<String, Object>> getFileMapByCloudIds(Set<String> fileIdList) {
		return baseMapper.getFileMapByCloudIds(fileIdList);
	}

	@Override
	public List<FileManage> queryFileManageListByIds(List<String> fileIds) {
		return baseMapper.queryFileManageListByIds(fileIds);
	}

	@Override
	public void batchInvalidFile(String businessId) {
		baseMapper.batchInvalidFile(businessId);
	}

	@Override
	public Map<String, Map<String, String>> getFilePathMap(int businessType) {
		return baseMapper.getFilePathMap(businessType);
	}

	@Override
	public List<FileManage> getPendingFiles() {
		return baseMapper.getPendingFiles();
	}

	@Override
	public List<FileManage> getJunkFiles() {
		return baseMapper.getJunkFiles();
	}

	@Override
	public List<Map<String, String>> getNeedPushFile(int businessType) {
		return null;
	}
}
